package com.boho.common;

import java.io.Closeable;
import java.io.IOException;

import org.apache.log4j.Logger;

public class IoUtil {
	
	private static final Logger logger = Logger.getLogger(IoUtil.class);
	
	public static void close(Closeable io){
		if(io!=null){
			try {
				io.close();
				io=null;
			} catch (IOException e) { 
				logger.error("流关闭异常",e);
			}
		}
	}
}
